import axios from "./request"

// request 即为自定义封装的axios
import request from './request'
/**
 * 首页轮播图的请求封装
 */
export function getBannerList () {
  return request.get('/banner/list')
}
/**
 * 首页秒杀列表的封装
 * @param {Object} params { count: 1, limitNum: 6 }
 */
export function getSeckillList (params) {
  // get请求的参数
  return request.get('/pro/seckilllist', { params })
}

/**
 * 首页分页列表的封装
 * @param {Object} params { count: 1, limitNum: 10 }
 */
export function getProList (params) {
  return request.get('/pro/list', { params })
}
